-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: filter out atlantis/apply from mergeability clause #1856
feat: filter out atlantis/apply from mergeability clause #1856
Conversation
Should fix: #523 |
@@ -75,12 +74,15 @@ func (d *DefaultCommitStatusUpdater) UpdateCombinedCount(repo models.Repo, pull | |||
return d.Client.UpdateStatus(repo, pull, status, src, fmt.Sprintf("%d/%d projects %s successfully.", numSuccess, numTotal, cmdVerb), "") | |||
} | |||
|
|||
func (d *DefaultCommitStatusUpdater) UpdateProject(ctx models.ProjectCommandContext, cmdName models.CommandName, status models.CommitStatus, url string) error { | |||
func (d *DefaultCommitStatusUpdater) UpdateProject(ctx models.ProjectCommandContext, command models.CommandName, status models.CommitStatus, url string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, cmdName
might be better than command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pretty straightforward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
Filter out atlantis apply status during mergeability check.
Filter out atlantis apply status during mergeability check.
…#1856) Filter out atlantis apply status during mergeability check.
runatlantis#1968) * Revert "feat: filter out atlantis/apply from mergeability clause (runatlantis#1856)" This reverts commit d01796b. * Add missing import.
Just cherry picked the relevant commits from the lyft/atlantis. I'm going to remove the lyft specific things that aren't relevant and parameterize the status check name based on the server flag before this is ready for review.
Basically, this adds onto the mergeability checker in github client by fetching all the commit statuses and filtering out atlantis/apply from the status (in the case that mergeability returns false).